package com.lhs.Controller;


import com.lhs.Result.Result;
import com.lhs.service.Vip_RecordService;
import com.lhs.VO.user.vipVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/vip_record")
public class Vip_RecordController {

    @Autowired
    private Vip_RecordService vipService;

    //获取会员信息
    @GetMapping("/getVipRecord/{userId}")
    public Result<vipVO> getVipRecord(@RequestBody Long userId){
        return vipService.getVipRecord(userId);
    }

}
